package com.xiaodou.mjf.application.${moduleName}.service.impl;

import com.xiaodou.mjf.application.${moduleName}.repository.${entity.className}Repository;
import com.xiaodou.mjf.application.${moduleName}.service.${entity.className}Service;
import com.xiaodou.mjf.entity.${moduleName}.${entity.className};
import com.xiaodou.mjf.infrastructure.common.app.JpaSimpleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.transaction.Transactional;


/***
 *
 * ${entity.className}业务访问实现
 * @author XiaoDou.com Code Generator
 * @version 1.0
 * 2014-10-29 17:37:52
 *
 */
@Service @Transactional
public class ${entity.className}ServiceImpl extends JpaSimpleService<${entity.className},String> implements ${entity.className}Service{

	Logger logger = LoggerFactory.getLogger(${entity.className}ServiceImpl.class);

    @Resource
    ${entity.className}Repository ${entity.className?uncap_first}Repository;

    @Override
    protected JpaRepository<${entity.className}, String> getRepository() {
        return ${entity.className?uncap_first}Repository;
    }

}

